package com.qssoft.cqry.common.shardingsphere.annotation;

import com.qssoft.cqry.common.shardingsphere.config.ShardingDataSourceAutoConfiguration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * 开启分库分表注解,需要自己配置相关的分库分表规则,目前需要优化...
 * @author xqls
 */
@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Import(ShardingDataSourceAutoConfiguration.class)
public @interface EnableShardingDataSource {
}